#include <ros/ros.h>
#include <practice/custom.h>

int main(int argc, char *argv[])
{
    ros::init(argc, argv, "custom_msgs");
    ros::NodeHandle nh;
    ros::Publisher pub = nh.advertise<practice::custom>("cutom_msgs", 10);
    ros::Rate rate(2);

    int count = 0;

    while (ros::ok())
    {
        practice::custom msg;
        std::stringstream stream;

        stream << "Hello custom world " << count++;
        msg.name = xiaomi;
        msg.age = 18;
        msg.description = stream.str();
        pub.publish(msg);
        rate.sleep();
    }

    return 0;
}